package kr.co.doriclassic.pro07_04;

import java.util.Scanner;

class Movie {
	private String sTitle;
	private String sRating;
	private String sDirector;
	private String sDate;
	
	public Movie() {
		sTitle="정보없음";
		sRating = "정보없음";
		sDirector = "정보없음";
		sDate = "정보없음";	
	}
	public Movie(String sTitle,String sDirector) {
		this();
		this.sTitle=sTitle;
		this.sDirector = sDirector;		
	}
	public Movie(String sTitle,String sRating,String sDirector, String sDate) {
		this.sTitle=sTitle;
		this.sRating = sRating;
		this.sDirector = sDirector;
		this.sDate = sDate;	
	}
	
	public void print(){
		System.out.println("제목 : "+sTitle);
		System.out.println("평점 : "+sRating);
		System.out.println("감독 : "+sDirector);
		System.out.println("발표 : "+sDate);
		System.out.println("=====================");
	}
}
public class Pro07_04{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String sTi, sDi, sDa, sRa;
		Movie[] m = new Movie[3];
		
		for(int i=0;i<3;i++){
			System.out.print(i+1+") 제목을 입력하세요   : ");
			sTi = sc.nextLine();
			System.out.print(i+1+") 평점을 입력하세요   : ");
			sRa = sc.nextLine();
			System.out.print(i+1+") 감독명을 입력하세요 : ");
			sDi = sc.nextLine();
			System.out.print(i+1+") 발표일을 입력하세요 : ");
			sDa = sc.nextLine();
		
		    m[i] = new Movie(sTi, sRa, sDi, sDa);
		}
		
		for(int j=0;j<3;j++){
			m[j].print();
		}
	}
}